package com.sslfer.order.controller;

import com.sslfer.order.feignClient.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sslf
 * @date 2018/6/16
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private UserFeignClient userFeignClient;

    @GetMapping("/info")
    public String getOrderInfo(String orderId){

        String s = this.userFeignClient.userInfo("1");

        return s;
    }

}
